/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sv.gob.presidencia.cultura.espacios.procesos;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author edgardo
 */
@Stateless
public class ProcesosGen implements ProcesosGenLocal {
    @PersistenceContext(unitName = "sicEspaciosPU")
    private EntityManager em;
    
    @Override
    public void persist(Object object) {
        try {
        em.persist(object);
    } catch (Exception e) {
        }
    }
    @Override
    public void merge(Object object) {
        try {
        em.merge(object);
    } catch (Exception e) {
        }
    }

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")


}
